import http from "@/http";
import { LoginParm,RegisterParm,InfoParm } from "./LoginModel";

//登录
export const loginApi = (parm:LoginParm)=>{
    return http.post("/api/login",parm)
}


//注册
export const registerApi = (parm:RegisterParm)=>{
    return http.post("/api/register",parm)
}



// //获取菜单数据
// export const getMenuListApi = (parm:InfoParm)=>{
//     return http.get("/api/login/getMenuList",parm)
// }
// //获取用户信息
// export const getInfoApi = (parm:InfoParm)=>{
//     return http.get("/api/login/getInfo",parm)
// }